﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BT_DoHoa_Nhom13.ShapeLib.FCShapes;

namespace BT_DoHoa_Nhom13.DiagramFactorys
{
    public class FlowChartFactory : MyDiagramFactory
    {
        static MyDiagramFactory instance;
        public static MyDiagramFactory GetInstance()
        {
            if (instance == null)
            {
                instance = new FlowChartFactory();
            }

            return instance;
        }

        private FlowChartFactory()
        {
            name = "Flow Chart Diagram";
            InitialListNameOfShape();
        }

        public override MyShape GetStartShape()
        {
            return new FCStartShape();
        }

        public override MyShape GetConditionShape()
        {
            return new FCConditionShape();
        }

        public override MyShape GetEndShape()
        {
            return new FCEndShape();
        }

        public override MyShape GetProcessShape()
        {
            return new FCProcessShape();
        }

        public override MyShape GetInputShape()
        {
            return new FCInputShape();
        }

        public override MyShape GetOutputShape()
        {
            return new FCOutputShape();
        }

        public override MyShape GetArrowShape()
        {
            return new FCArrowShape();
        }
    }
}
